﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using TalentRecruitmentSystem.Manage;
using TalentRecruitmentSystem.Service;

namespace TalentRecruitmentSystem
{
    public partial class CommunalPage : System.Web.UI.MasterPage
    {
        UserInfoManage um = new UserInfoManage();
        CompanyInfoManage cm = new CompanyInfoManage();
        protected void Page_Load(object sender, EventArgs e)
        {
            CompanyInfo companyInfo=new CompanyInfo();
            HL6.Visible=false;
            if (Session["perInSession"] != null && Session["perInSession"] != "")
            {
                UserInfo userInfo = um.getUserInfoByUserName(Session["perInSession"].ToString());
                if (userInfo != null & userInfo.Role == "管理员")
                {
                    HL6.Visible = true;
                }
        //        {
        //            HL4.Visible = false;
        //        }
        //        else
        //        {
        //            HL2.Visible = false;
        //        }
        //    }
        //    else
        //    {
        //        HL2.Visible = false;
            }
        }
    }
}